@model ShivamEMR.Model.Domain.MedicalDomain.Test

@{
    ViewBag.Title = "Details";
     Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Test</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">ShortName</div>
    <div class="display-field">@Model.ShortName</div>

    <div class="display-label">FullName</div>
    <div class="display-field">@Model.FullName</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">PictureID</div>
    <div class="display-field">@Model.PictureID</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group).ToString()</div>

    <div class="display-label">Unit</div>
    <div class="display-field">@(Model.Unit == null ? "None" : Model.Unit.Name)</div>

    <div class="display-label">TestPicture</div>
    <div class="display-field">@(Model.TestPicture == null ? "None" : Model.TestPicture.Title)</div>

    <div class="display-label">Alerts</div>
    <div class="display-field">@(Model.Alerts == null ? "None" : Model.Alerts.Count.ToString())</div>

    <div class="display-label">PatientTests</div>
    <div class="display-field">@(Model.PatientTests == null ? "None" : Model.PatientTests.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


